<div ng-include src="'header.html'"></div>

<div class="table-header mt20 clearfix">
    <span class="fl lh30 f14">奖励列表</span>
    <div class="fr btn-group">

        <!--<a href="javascript: void(0)" class="btn btn-green ng-hide"
           ng-show="baseData.loaded && !baseData.allowBrokeragePayment"
           ng-click="brokerage.showBatchDealOffer()">批量发放</a>-->

        <a href="javascript: void(0)" class="btn btn-yellow ng-hide permission p-50030605-02-block"
           ng-show="baseData.loaded && baseData.allowBrokeragePayment"
           ng-click="brokerage.showBatchPay()">批量委托发放</a>

        <a href="javascript: void(0)" class="btn btn-yellow permission p-50030605-99-block" ng-click="baseData.exportData()">导出</a>
    </div>
</div>
<div id="grid" class="table-wrap mt10">
    <table width="100%">
        <thead>
            <tr>
                <th style="min-width:50px;padding-top: 3px;">
                    <input type="checkbox" ui-checkbox="序号"
                           ng-change="query.updateCheckAll()"
                           ng-model="query.checkAll">
                </th>
                <th style="min-width:90px;">被邀请经纪人</th>
                <th style="min-width:80px;">成交金额</th>
                <th style="min-width:130px;">佣金信息</th>
                <th style="min-width:140px;">经纪人信息</th>
                <th style="min-width:130px;">身份信息</th>
                <th style="min-width:110px;">邀请经纪人成交奖励</th>
                <th style="min-width:80px;">奖励产生时间</th>
                <th style="min-width:80px;">审核信息</th>
                <th style="min-width:70px;">操作</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="record in query.data"
                ng-mouseover="record.hover = true"
                ng-mouseleave="record.hover = false">
                <td height="80">
                    <input type="checkbox" ui-checkbox="{{((query.pageIndex - 1) * query.pageSize) + $index + 1}}"
                           ng-change="query.updateCheck(record)"
                           ng-model="record.checked">
                </td>
                <td>
                    <p><span ng-bind="record.broker_name1"></span>（<span ng-bind="record.genderText1"></span>）</p>
                    <p ng-bind="record.mobile_tel1"></p>
                </td>
                <td>
                    <p ng-bind="record.cj_price | number"></p>
                </td>
                <td>
                    <p>佣金总额：<span ng-bind="record.sum_amount | number"></span></p>
                    <p>结佣状态：<span ng-bind="record.ffstatus"></span></p>
                </td>
                <td>
                    <p><span ng-bind="record.broker_name2"></span>（<span ng-bind="record.genderText2"></span>）</p>
                    <p><span ng-bind="record.mobile_tel2"></span></p>
                    <p class="c-gray">证件号码：<br><span ng-bind="record.cre_no"></span></p>
                </td>
                <td>
                    <p><span ng-bind="record.Text"></span></p>
                    <p class="c-gray ng-hide" ng-show="!!record.BelongsCompanyText">所属公司：<span ng-bind="record.BelongsCompanyText"></span></p>
                </td>
                <td>
                    <p ng-bind="record.amount | number"></p>
                </td>
                <td>
                    <p ng-bind="record.CreatedOn | strdate"></p>
                </td>
                <td>
                    <p ng-bind="record.ApprovalBy"></p>
                    <p ng-bind="record.ApprovalOn | strdate"></p>
                </td>
                <td>
                    <div class="ng-hide" ng-show="record.hover">
                        <p><a href="javascript: void(0)" class="c-orange permission p-50030605-11-inline-block"
                           ui-confirm-ok="brokerage.cancelApprove(record)"
                           ui-confirm="确定取消审定选中记录吗？">取消审定</a></p>

                        <p><a href="javascript: void(0)" class="c-orange ng-hide permission p-50030605-02-inline-block"
                           ui-dialog="奖励发放"
                           ui-dialog-data="record"
                           ui-dialog-ok="brokerage.offer($data)"
                           ui-dialog-url="dialog/offer.html"
                           ng-show="!baseData.allowBrokeragePayment">发放</a></p>

                        <a href="javascript: void(0)" class="c-orange ng-hide permission p-50030605-02-inline-block"
                           ui-dialog="奖励委托发放"
                           ui-dialog-data="record"
                           ui-dialog-ok="brokerage.pay($data)"
                           ui-dialog-url="dialog/offer.html"
                           ng-show="baseData.allowBrokeragePayment">委托发放</a>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
    <div class="no-data ng-hide" ng-show="!query.hasData"><span>暂无数据</span></div>
</div>

<div ng-include src="'footer.html'"></div>
